import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import './plugins/vant'
import * as echarts from 'echarts'
import VueAwesomeSwiper from 'vue-awesome-swiper'


import './assets/css/normalize.css'
import './assets/css/index.css'
import 'swiper/css/swiper.css'


//使用开发分插件
import mycharts from './plugins/echarts'
Vue.use(mycharts)

Vue.use(VueAwesomeSwiper)

Vue.prototype.$echarts = echarts
Vue.config.productionTip = false
Vue.filter('formatData', (val) => {
    return new Date(val)
        .toLocaleString("zh", { hour12: false })
        .replaceAll("/", "-");
}, )

new Vue({
    router,
    store,
    render: h => h(App),
}).$mount('#app')